<?php require_once('../../Connections/cotiza.php'); 
mysql_select_db($database_cotiza, $cotiza);
?>
<?php 
$region = $_GET['rg'];
$name   = $_GET['name'];
$query = "SELECT * FROM comuna_mstr WHERE comuna_reg_id = '$region' ORDER BY comuna_desc";
$rslt  = mysql_query($query,$cotiza);
$row   = mysql_fetch_assoc($rslt);
$cant  = mysql_num_rows($rslt);
?>
<select name="<?php echo $name;?>" id="<?php echo $name;?>" class="default" <?php  if($cant == 0) echo "disabled=\"disabled\"";?> onchange="activa_button()">
<?php  if($cant == 0){?>
<option>Seleccione una Regi&oacute;n...</option>
<?php }?>
<?php do{?>
  <option value="<?php echo $row['comuna_id'];?>"><?php echo $row['comuna_desc'];?></option>
<?php }while($row   = mysql_fetch_assoc($rslt));?>
</select>
<?php 
mysql_close($cotiza);
?>